<template>
  <div class="_wrapper _border">
    <div class="_p10" v-if="isShow">
      <slot></slot>
    </div>
    <div class="_wrapper-x _text-a-c" @click="click">
      <el-icon v-if="isShow" class="_m-r-5"> <ArrowUp /> </el-icon>
      <el-icon v-else> <ArrowDown /> </el-icon>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    click() {
      this.isShow = !this.isShow;
      if (this.isShow == true) {
        this.$emit("open");
      }
    },
  },
};
</script>

<style></style>
